﻿<Page x:Class="BeautySalon.Pages.AddEntryPage"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
      xmlns:local="clr-namespace:BeautySalon.Pages"
      mc:Ignorable="d" 
      d:DesignHeight="450" d:DesignWidth="800"
      Title="AddEntryPage">

    <Grid Background="White">
        <Grid.RowDefinitions>
            <RowDefinition Height="60"/>
            <RowDefinition Height="60"/>
            <RowDefinition Height="60"/>
            <RowDefinition Height="60"/>
            <RowDefinition Height="60"/>
        </Grid.RowDefinitions>

        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="300"/>
            <ColumnDefinition Width="*"/>
        </Grid.ColumnDefinitions>

        <!--TextBlock'и-->
        <TextBlock Text="Клиент"
                   Width="133"
                   Height="30"
                   TextAlignment="Center"
                   VerticalAlignment="Center"
                   HorizontalAlignment="Center"
                   FontFamily="Tahoma"
                   FontSize="19"/>

        <TextBlock Text="Услуга"
                   Grid.Row="1"
                   Width="133"
                   Height="30"
                   TextAlignment="Center"
                   VerticalAlignment="Center"
                   HorizontalAlignment="Center"
                   FontFamily="Tahoma"
                   FontSize="19"/>

        <TextBlock Text="Время оказания услуги"
                   Grid.Row="2"
                   Height="30"
                   TextAlignment="Center"
                   VerticalAlignment="Center"
                   HorizontalAlignment="Center"
                   FontFamily="Tahoma"
                   FontSize="19"/>

        <TextBlock Text="Комментарий"
                   Grid.Row="3"
                   Width="133"
                   Height="30"
                   TextAlignment="Center"
                   VerticalAlignment="Center"
                   HorizontalAlignment="Center"
                   FontFamily="Tahoma"
                   FontSize="19"/>

        <TextBox Name="StartTimeTxb"
                 Text="{Binding StartTime}"
                 FontSize="20"
                 VerticalContentAlignment="Center"
                 Grid.Column="1"
                 Grid.Row="2"
                 Width="300"
                 Height="40"
                 HorizontalAlignment="Left"/>

        <TextBox Name="CommTxb"
                 Text="{Binding Comment}"
                 Grid.Column="1"
                 Grid.Row="3"
                 MaxLength="250"
                 Width="300"
                 FontSize="20"
                 VerticalContentAlignment="Center"
                 Height="40"
                 HorizontalAlignment="Left"/>

        <!--ComboBox's-->
        <ComboBox Name="SelectClientCbx"
                  SelectedItem="{Binding Client}"
                  Grid.Row="0"
                  FontSize="20"
                  VerticalContentAlignment="Center"
                  HorizontalAlignment="Left"
                  Grid.Column="1"
                  Height="40"
                  Width="300"/>

        <ComboBox Name="SelectServiceCbx"
                 SelectedItem="{Binding Service}"
                 Grid.Column="1"
                 FontSize="20"
                 VerticalContentAlignment="Center"
                 Grid.Row="1"
                 Width="300"
                 Height="40"
                 HorizontalAlignment="Left"/>

        <!--Buttons-->
        <Button Name="SaveNewRecordBtn"
                Grid.Column="1"
                Grid.Row="5"
                Width="150"
                Height="35"
                HorizontalAlignment="Left"
                Content="Сохранить"
                FontSize="20"
                Click="SaveNewRecordBtn_Click"/>

        <Button Name="BackBtn"
                Grid.Column="0"
                Grid.Row="5"
                Width="150"
                Height="35"
                HorizontalAlignment="Center"
                Content="Назад"
                FontSize="20"
                Click="BackBtn_Click"/>
    </Grid>
</Page>
